package net.valerijtimakov.homefinances.domain.common;

import java.util.Date;

public class OperationItem extends NamedItem {

	private static final long serialVersionUID = 1L;
	
	private long cathegoriId;
	private Date addDate;
	private long accountId;
	private long currencyId;
	
	public OperationItem() {
		super();
	}
	
	public OperationItem(long id, String name, long cathegoriId, 
		Date addDate, long accountId, long currencyId) 
	{
		super(id, name);
		this.cathegoriId = cathegoriId;
		this.addDate = addDate;
		this.accountId = accountId;
		this.currencyId = currencyId;
	}

	public long getCathegoriId() {
		return cathegoriId;
	}

	public void setCathegoriId(long cathegoriId) {
		this.cathegoriId = cathegoriId;
	}

	public Date getAddDate() {
		return addDate;
	}

	public void setAddDate(Date date) {
		this.addDate = date;
	}

	public long getAccountId() {
		return accountId;
	}

	public void setAccountId(long schetId) {
		this.accountId = schetId;
	}

	public long getCurrencyId() {
		return currencyId;
	}

	public void setCurrencyId(long currencyId) {
		this.currencyId = currencyId;
	}

	@Override
	public String toString() {
		return "cathegoriId=" + cathegoriId + "," + "addDate=" + addDate + "," + 
			"accountId=" + accountId + "," + "currencyId=" + currencyId + "," + super.toString();
	}
}
